NonUnique Key for Migrations Fix.

when files have been saved all at the same time it can cause problems
with the migrations list that needs to be executed.

The solution implemented is a temporary one until a better method can be
found that does not rely on conventions such as 01migrationfilename.php,
02, 03... but uses the time the files were made themselves.
Closed Resource handle to directory.
Initial Messages Table migration.

Created table schema for messages table. cant use mediumtext for the
message like I wanted to because in memory tables dont support blob/text
types.