Adding message items to database