added functionality to messages

Messages inside of database, will populate in the main field of
messages.php