Insert permissions to database