Validate the length of the author and email fields to 255 chars

This avoids an exception message when a too-long string is sent to SQLite.