Make database contain integers, and put database access commands in
methods