Fixed restrictions to database.