Finished restful backend. It's working properly with the database now.