few changes related database comunication