working on init database on phone from server