Add models class file

Add a database interaction file, here will go all db queries