added support for foreign_key placeholders and attribute values