Added default values to oclumns in the database schema
Fixed bugs on galleries image edit page