Repository interface and MySQL implementation.