Fix owncloud configuration and database