Creating database and categories