Fixed bug by changing location of set :database