implementing databases(in progress)