Add database logic to backend
Rename database columns

Dashes are not valid js object identifiers.