Created some database wrapper functions
merge done