$questionmarks = array_fill(0, sizeof($properties), '?');
$stmt = self::$db->prepare('INSERT INTO `' . static::getTableName() . '` (' . implode(',', array_keys($properties)) . ') VALUES (' . implode(',', $questionmarks) . ')');
$stmt->execute(array_values($properties));