logic fixes
logic fixes
add postgresql file