Database. File, action, user_type_action tables. Table fixes