18 points - TODO: advanced sql, different status code setting, button for editing