easy to understand regex
used unsigned integer for user_id
used unsigned integer for note_id and user_id

change type of user_id to be the same than in users table
Merge pull request #432 from devplanete/patch-10

(devplanete) regex optimizations (better human-readable)
(devplanete) database field optimizations