Database code

Added DatabaseHelper and table definitions

#5 #30