Finished database integration