database usage practice