Database Population problem with mysql