add fb sdk, change to use postgres db