Fixed the database so it can be used by android