public static Teacher get(String email) {
try {
String sql = "select teacher_id, first_name, last_name, email from teachers where email = ?";
Teacher teacher = null;
try (Connection connection = DriverManager.getConnection(Utils.getCloudSqlURL())) {
try (PreparedStatement ps = connection.prepareStatement(sql)) {
ps.setString(1, email.toLowerCase());
try (ResultSet resultSet = ps.executeQuery()) {
while (resultSet.next()) {
teacher = new Teacher();
teacher.id = resultSet.getInt(1);
teacher.firstName = resultSet.getString(2);
teacher.lastName = resultSet.getString(3);
teacher.email = resultSet.getString(4);
}