Fixed some silly mistakes and added database logging
ignore database files