add sql and posts