add database.yml & cleanup for image size