Fixed postgre db