set up database and ajax request

make sure to run rake db:migrate