data base implementation