fixed some bugs,now we populate the db