almost done with database end...